import {BasicColumn, FormSchema} from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '客户ID',
    dataIndex: 'customId',
    width: 200,
  },
  {
    title: '身份证正面',
    dataIndex: 'identityCardImg1',
    width: 200,
  },
  {
    title: '身份证反面',
    dataIndex: 'identityCardImg2',
    width: 200,
  },
  {
    title: '银行卡正面',
    dataIndex: 'bankCardImg1',
    width: 200,
  },
  {
    title: '银行卡反面',
    dataIndex: 'bankCardImg2',
    width: 200,
  },
  {
    title: '驾驶证正面',
    dataIndex: 'drivingPermitImg1',
    width: 200,
  },
  {
    title: '驾驶证反面',
    dataIndex: 'drivingPermitImg2',
    width: 200,
  },
  {
    title: '行驶证正面',
    dataIndex: 'vehicleLicense1',
    width: 200,
  },
  {
    title: '行驶证反面',
    dataIndex: 'vehicleLicense2',
    width: 200,
  },
  {
    title: '大本照片',
    dataIndex: 'bigBenImg',
    width: 200,
  },
  {
    title: '申请表图片',
    dataIndex: 'applicationFormImg',
    width: 200,
  },
  {
    title: '授权书图片',
    dataIndex: 'letterAuthorizationImg',
    width: 200,
  },
  {
    title: '电子驾照图片',
    dataIndex: 'electronicImg',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '身份证正面',
    field: 'identityCardImg1',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '身份证反面',
    field: 'identityCardImg2',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '银行卡正面',
    field: 'bankCardImg1',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '银行卡反面',
    field: 'bankCardImg2',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '驾驶证正面',
    field: 'drivingPermitImg1',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '驾驶证反面',
    field: 'drivingPermitImg2',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '行驶证正面',
    field: 'vehicleLicense1',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '行驶证反面',
    field: 'vehicleLicense2',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '大本照片',
    field: 'bigBenImg',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '申请表图片',
    field: 'applicationFormImg',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '授权书图片',
    field: 'letterAuthorizationImg',
    component: 'ImageUpload',
    required: true,
  },
  {
    label: '电子驾照图片',
    field: 'electronicImg',
    component: 'ImageUpload',
    required: true,
  }
];
